package com.anhry.app.safety.manage.enterprise.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TbCorpEconomyType entity.
 * 国民经济类型（对接使用）
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_CORP_ECONOMY_TYPE")
@SequenceGenerator(name = "TB_CORP_ECONLMY_TYPE_SEQ", sequenceName = "TB_CORP_ECONLMY_TYPE_SEQ", allocationSize = 1)
public class TbCorpEconomyType implements java.io.Serializable {

	// Fields

	private Long id;
	private String typeName;//名称
	private Long typeParentId;//父id
	private String typeParentName;//父类型名称
	private String typeCode;//
	private String typeRemark;//说明
	private String isDele;

	// Constructors

	/** default constructor */
	public TbCorpEconomyType() {
	}

	/** minimal constructor */
	public TbCorpEconomyType(Long id) {
		this.id = id;
	}

	/** full constructor */
	public TbCorpEconomyType(Long id, String typeName, Long typeParentId,
			String typeParentName, String typeCode, String isDele) {
		this.id = id;
		this.typeName = typeName;
		this.typeParentId = typeParentId;
		this.typeParentName = typeParentName;
		this.typeCode = typeCode;
		this.isDele = isDele;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "TB_CORP_ECONLMY_TYPE_SEQ")
	@Column(name = "ID", unique = true, nullable = false, precision = 11, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "TYPE_NAME", length = 225)
	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	@Column(name = "TYPE_PARENT_ID", precision = 11, scale = 0)
	public Long getTypeParentId() {
		return this.typeParentId;
	}

	public void setTypeParentId(Long typeParentId) {
		this.typeParentId = typeParentId;
	}

	@Column(name = "TYPE_PARENT_NAME", length = 225)
	public String getTypeParentName() {
		return this.typeParentName;
	}

	public void setTypeParentName(String typeParentName) {
		this.typeParentName = typeParentName;
	}

	@Column(name = "TYPE_CODE", length = 50)
	public String getTypeCode() {
		return this.typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	@Column(name = "IS_DELE", length = 1)
	public String getIsDele() {
		return this.isDele;
	}

	public void setIsDele(String isDele) {
		this.isDele = isDele;
	}

	@Column(name = "TYPE_REMARK", length = 1000)
	public String getTypeRemark() {
		return typeRemark;
	}

	public void setTypeRemark(String typeRemark) {
		this.typeRemark = typeRemark;
	}

}